From: Trevor Parscal Date: Tue, 14 Dec 2010 00:08:07 +0000 (+0000) Subject: Added comment about why you should not be depending on mediaWiki.user.sessionId befor... X-Git-Tag: 1.31.0-rc.0~33326 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=cfc2fb12336168d98f05bad22cd75de8e55a07b5;p=lhc%2Fweb%2Fwiklou.git Added comment about why you should not be depending on mediaWiki.user.sessionId before mediaWiki.loader.go is called. --- diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index 641459f967..561db60c68 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -328,6 +328,10 @@ window.mediaWiki = new ( function( $ ) { * Gets the current user's name or a random session ID automatically generated and kept in * a cookie. * + * Do not use this method before the first call to mediaWiki.loader.go(), it depends on + * jquery.cookie, which is added to the first payload just after mediaWiki is defined, but + * won't be loaded until the first call to go(). + * * @return string user name or random session ID */ this.sessionId = function () {